<?php

class Test extends CI_Controller{
    
    public function index(){
        $name="hhhh";
        @$count=  file_get_contents('./num.txt');
        $count=$count?$count:0;
        $count++;
        
        $data=array('name'=>$name,'count'=>$count);
        
        $f=  fopen('./num.txt', 'w+');
        fwrite($f, $count);
        fclose($f);
        
        $this->load->view('test_view',$data);
        $this->load->view('test_view_footer');
    }
    
}

